package com.bw.liuyushan.zhuangao4_mvptest1.Adapter;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import java.util.ArrayList;

/**
 * ZhuanGao4_MVPTest1
 * file name is : UserAdapter
 * created by Ender on 2021/8/19 15:05.
 * author : 刘雨杉
 * Describe(作用):
 */
public class UserAdapter extends FragmentPagerAdapter {
    ArrayList<Fragment> list_User;

    public UserAdapter(FragmentManager fm, ArrayList<Fragment> list_User) {
        super(fm);
        this.list_User = list_User;
    }

    @Override
    public Fragment getItem(int position) {
        return list_User.get(position);
    }

    @Override
    public int getCount() {
        return list_User.size();
    }
}